package za.org.jcicada.genss.sensor.messages;

import za.org.jcicada.genss.messages.BaseMessage;
import za.org.jcicada.genss.sensor.ISamplingStrategy;

/**
 * SetSamplingStrategyRequest.java
 *
 * @author Simon Cross
 *
 * Created on December 18, 2008, 14:26
 */

/**
 * A SetSamplingStrategyRequest message.
 */
public class SetSamplingStrategyRequest extends BaseMessage {

    /**
     * Class serialization version id.
     */
    private static final long serialVersionUID = 1L;
    
    /**
     * The desired sampling strategy object
     */
    private ISamplingStrategy strategy;
    
    /**
     * Create a SetSamplingStrategyRequest message.
     */
    public SetSamplingStrategyRequest(ISamplingStrategy strategy) {
        this.strategy = strategy;
    }
    
    public ISamplingStrategy getSamplingStrategy() {
        return strategy;
    }

}
